// #include<json/json.h>
#include<iostream>
#include"../thirdpart/json.hpp"
using namespace nlohmann;
int main(){
    // json::Value root;
    // root["key"] = "value";
    // std::cout<<root.toStyledString()<<std::endl;
    
    json js;
    js["liuwen"] = "shabi1";
    js["liuwen2"] = {{"key10", "value10"},{"key2","value2"}};
    std::cout << js.dump(4) << std::endl;
    
    // 添加一些更复杂的嵌套结构
    json nested_js;
    nested_js["info"]["name"] = "test";
    nested_js["info"]["version"] = 1.0;
    nested_js["data"] = {1, 2, 3, 4, 5};
    std::cout << nested_js.dump(2) << std::endl;
    
    return 0;
}
